using System;
using System.Collections.Generic;
using System.ComponentModel;

namespace WB.Mvc.Forms
{
	/// <summary>
	/// Strategy to create an instance of <see cref="FieldGroup"/> from a model.
	/// </summary>
	public interface IFieldGroupStrategy
	{
		IDictionary<FieldGroup, object> Create(object model);

		IDictionary<FieldGroup, object> Create(object model, Predicate<PropertyDescriptor> shouldInclude);
	}
}